package com.own.compoent.util.zip.unzip.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.InputStream;
import java.io.Serializable;

/**
 * ZipFileModel
 *
 * @author chenxueli
 * @date 2022-09-27 19:45:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class BaseZipFileModel extends BaseZipModel implements Serializable {

    @Schema(title = "文件内容")
    @JsonIgnore
    private InputStream content;

    public BaseZipFileModel(String name, InputStream content) {
        super(name);
        this.content = content;
    }

}
